// import { FormProps, FormSchema } from '/@/components/Table';
import { BasicColumn } from '/@/components/Table/src/types/table';

export function getCols(): BasicColumn[] {
  return [
    {
      title: '操作信息',
      dataIndex: 'operInfo',
      key: 'operInfo',
    },
    {
      title: '操作类型',
      dataIndex: 'operType',
      key: 'operType',
    },
    {
      title: '操作人',
      dataIndex: 'name',
      key: 'name',
    },
    {
      title: '等级',
      dataIndex: 'operLevel',
      key: 'operLevel',
    },
    {
      title: '操作时间',
      dataIndex: 'operDate',
      key: 'operDate',
    },
  ];
}

export function getRows() {

  return (() => {
    const arr: any = [];
    for (let index = 0; index < 40; index++) {
      arr.push({
        id: `${index}`,
        info: '张三登录',
        type: '登录',
        oprator: '张三',
        level: '初级',
        updated_at: '2022-12-31 11:23',
      });
    }
    return arr;
  })();
}

